home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / ODF / Found / FWString / FWBndStr.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  1.6 KB  |  38 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWBndStr.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. //    This file used to contain class declarations for FW_CString32 and FW_CString255.
  10. //
  11. //    ODF release 1 & 2 supported two derivatives of FW_CString: FW_CString32 and
  12. //    FW_CString255. These classes were intended to represent stack-based bound
  13. //     strings that were less expensive than FW_CString and could be used when
  14. //    string data was known to not exceed the specified character count. In practice,
  15. //    they turned out to be more expensive than FW_CString. Since they were reference
  16. //     counted and shared, they always required at least one heap allocation for the
  17. //    shared representation object. They also had the ability to become dynamic (be
  18. //    moved into the heap) when necessary. The amount of code required to support
  19. //    stack-heap transitions, and the state tests exceeded the amount of code
  20. //    executed for FW_CString and, consequently, they were removed from the framework.
  21. //
  22. //    The compatibility code present in this unit exists to support the runtime
  23. //    ability to instantiate an archived FW_CString32 or FW_CString255. When an
  24. //    archived instance of either of these classes is encounted, and FW_CString
  25. //    will be instantiated. When it is written, it will be written as an FW_CString.
  26.  
  27. #ifndef FWBNDSTR_H
  28. #define FWBNDSTR_H
  29.  
  30. #ifndef FWPSTR_H
  31. #include "FWPStr.h"
  32. #endif
  33.  
  34. typedef FW_CString FW_CString32;
  35. typedef FW_CString FW_CString255;
  36.  
  37. #endif
  38.